<%--
  Created by IntelliJ IDEA.
  User: Albert Lee
  Date: 2020/5/23
  Time: 22:31
  To change this template use File | Settings | File Templates.
--%>

<%@ page language="java" contentType="text/html; charset=utf-8"
         pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
  <title>MySQL Action</title>
  <style type="text/css">
    .action {
      width: 500px;
      height: 200px;
      margin: 0 auto;
      background: rgba(234, 233, 233, 0.22);
      margin-top: 50px;
    }

    .result {
      width: 500px;
      height: 100px;
      margin: 0 auto;
      background: rgba(189, 187, 104, 0.22);
      margin-top: 50px;
    }

    .action li {
      list-style: none;
      padding-top: 20px;
    }
  </style>
</head>
<body>

<%--点击链接触发servlet 执行相关的操作--%>
<div class="action">
  <div>JSP MySQL 简单的增删改查</div>
  <ul>
    <li><a href="/MySQLDBDemo/InsertServlet">Insert</a></li>
    <li><a href="/MySQLDBDemo/SelectServlet">Select</a></li>
    <li><a href="/MySQLDBDemo/UpdateServlet">Update</a></li>
    <li><a href="/MySQLDBDemo/DeleteServlet">Delete</a></li>
  </ul>
</div>

<%--servlet传递的参数，显示 操作结果--%>
<div class="result">
  <div>Result:</div>
  <div>${message}</div>
  <div>${studentid}</div>
  <div>${quiz}</div>
  <div>${exam}</div>
</div>

</body>
</html>
